package jh.com.jhappbf.model;

import android.os.Parcel;
import android.os.Parcelable;

public class PriceModel implements Parcelable {

	private String id; //编号
	private String receiver; //收货人
	private String cargoname; //货名
	private String price; //单价
	private String planId ;//合同单号
	private String spec; //规格
	private String type; //类型
	private String sender ; //发货

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getCargoname() {
		return cargoname;
	}

	public void setCargoname(String cargoname) {
		this.cargoname = cargoname;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getPlanId() {
		return planId;
	}

	public void setPlanId(String planId) {
		this.planId = planId;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public PriceModel(){};
	public PriceModel(Parcel source)
	{
		id = source.readString();
		receiver = source.readString();
		cargoname = source.readString();
		price = source.readString();
		planId  = source.readString();
		spec = source.readString();
		type = source.readString();
		sender = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(receiver);
		dest.writeString(cargoname);
		dest.writeString(price);
		dest.writeString(planId);
		dest.writeString(spec);
		dest.writeString(type);
		dest.writeString(sender);
	}

	public static final Creator<PriceModel> CREATOR = new Creator<PriceModel>() {

		@Override
		public PriceModel createFromParcel(Parcel source) {
			return new PriceModel(source);
		}

		@Override
		public PriceModel[] newArray(int size) {
			return new PriceModel[size];
		}
	};

}
